package cn.kgc.springcloud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.kgc.springcloud.entity.City;
import cn.kgc.springcloud.service.CityService;
import cn.kgc.springcloud.mapper.CityMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class CityServiceImpl extends ServiceImpl<CityMapper, City> implements CityService{

    @Autowired(required = false)
    private CityMapper cityMapper;
    @Override
    public City addCity(City city) {
        cityMapper.insert(city);
        return city;
    }
}




